<?php
namespace Amis\dataviewer;

use Amis\Basics\AmisBasics;

class Remark extends AmisBasics
{
    public string $type = 'remark';

    /**
     * 外层 CSS 类名
     * @param string $className
     * @return $this
     */
    public function className(string $className)
    {
        $this->className = $className;
        return $this;
    }

    /**
     * 提示文本
     * @param string $content
     * @return $this
     */
    public function content(string $content)
    {
        $this->content = $content;
        return $this;
    }

    /**
     * 弹出位置
     * @param string $placement
     * @return $this
     */
    public function placement(string $placement)
    {
        $this->placement = $placement;
        return $this;
    }

    /**
     * 触发条件
     * @param array $trigger
     * @return $this
     */
    public function trigger(array $trigger = ['hover', 'focus'])
    {
        $this->trigger = $trigger;
        return $this;
    }

    /**
     * 图标
     * @param string $icon
     * @return $this
     */
    public function icon(string $icon = 'fa fa-question-circle	')
    {
        $this->icon = $icon;
        return $this;
    }
}